package com.zzyl.serve.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 任务改期DTO（修改服务时间）
 */
@Data
@ApiModel(description = "任务改期请求参数")
public class UpdateTaskTimeDTO {

    @ApiModelProperty(value = "护理任务ID", required = true, example = "1001")
    @NotNull(message = "任务ID不能为空")
    private Long taskId;

    @ApiModelProperty(value = "新的期望服务时间", required = true, example = "2024-09-28 09:00:00")
    @NotNull(message = "服务时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime estimatedServerTime; // 与接口文档参数名一致
}